
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="/resource/css/gpw/gpw.css">
<div class="top">
    <div class="top-iner ft12">
        <div class="top-iner-l">
            客服电话&nbsp:&nbsp400-900-9017（9:30-18:30）
        </div>
        <?php
        $user_info = session_get(UserEnum::USER_INFO_SESSION_KEY);
        $cont=UserService::instance()->Ownmesgcount();

        ?>
        <?php if(empty($user_info)){?>
        <ul class="top-iner-r">
            <li class="r-list"><a href="/login.html">登录</a></li>
            <li><a href="/register.html">注册</a></li>
            <li class="nomarl"><a target="_blank" href="https://www.sobot.com/chat/pc/index.html?sysNum=e1e1e09b411e417b8d5c3fd66fcb8124">
                    在线客服</a></li>
        </ul>
        <?php }else {?>
        <ul class="top-iner-r ">
            <li class="r-list">欢迎您，<a href="/user.html"><span class="username" id="username">{{$user_info->user_name}}</span></a></li>
            <li><a href="/message.html">消息 <span class="mg-num" id="mg-num">{{$cont}}</span></a></li>
            <li><a href="/login_out.html">退出</a></li>
            <li class="nomarl">
                <a target="_blank" href="https://www.sobot.com/chat/pc/index.html?sysNum=e1e1e09b411e417b8d5c3fd66fcb8124">
                    在线客服</a>
            </li>
        </ul>
        <?php }?>
    </div>
</div>
<div class="nav-mod">
<div class="nav">
    <div class="log">
        <a href="/"><img src="/resource/img/gpw/home/log.png"></a>
    </div>
    <ul class="nav-list ft16">
        <li class="li1"><a href="/">首页</a></li>
        <li class="li2"><a href="/f.html">我要理财</a></li>
        <li class="li3"><a href="/new_hand.html">新手专区</a></li>
        <li class="li4"><a href="/safe.html">安全保障</a></li>
        <li class="li5"><a href="/xinxipilou.html">信息披露</a></li>
        <li class="myacc-l">|</li>
        <li class="myacc"><img class="imgmiddle" src="/resource/img/gpw/home/myAcc.png"></li>
        <li class="li6">@if(session_get(UserEnum::USER_INFO_USER_ID))<a href="/user.html">我的账户</a>@else<a href="/login.html">我的账户</a>@endif</li>
    </ul>
</div>
</div>
<script>
    $(function(){
        $('.nav .nav-list li a').each(function(){
            if($($(this))[0].href==String(window.location))
                $(this).parent().addClass('active');
        });
    })
</script>